package main

import "fmt"

func main() {
	A := []int{1, 2, 3, 2, 1}
	B := []int{3, 2, 1, 4, 7}
	findLength(A, B)
}

func findLength(A []int, B []int) int {
	C := [...][...]bool{}
	for i, i2 := range A {
		for i3, i4 := range B {
			if i2 == i4{
				C[i][i3] = true
			}else {
				C[i][i3] = false
			}
		}
	}
	fmt.Println(C)
	return 1
}
